@extends('admin.layout.index')
@section('content')
	<div class="col-md-12">
                  <!--   Kitchen Sink -->
                    <div class="card">
                        <div class="card-action">
                            订单详情
                            <br>
                            订单金额 ：<span id="money">{{ $survey['price'] }}</span>
                            <br>
                            商品名称 ：{{ $survey['goodsname'] }}
                            
                             
                        </div>
                       
                        <div class="card-content">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                        <tr>
                                            <th>#</th>
                                            <th>订单状态/时间</th>
                                            
                                            <th>买家</th>
                                            <th>卖家</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    	@foreach($data as $v)
                                        <tr @if($v['status'] == 2)style="background:#F2DEDE"@elseif($v['status'] == 1)style="background:#D9EDF7"@elseif($v['status'] == 3)style="background:#FCF8E3"@elseif($v['status'] == 4)style="background:#F2DEDE"@endif>
                                            <td>1</td>
                                            <td>@if($v['status'] == 2)商家未处理@elseif($v['status'] == 1)买家未处理@elseif($v['status'] == 0)交易完成@elseif($v['status'] == 3)订单异常处理中@elseif($v['status'] == 4)订单异常未处理@endif/{{ date('Y-m-d h:i:s',$v['time']) }}</td>
                                            
                                            <td><a href="/admin/user/userdetail?id={{ $v['customerid'] }}">{{ $v['customer'] }}</a></td>
                                            <td><a href="/admin/user/userdetail?id={{ $v['sellerid'] }}">{{ $v['seller'] }}</a></td>
                                        </tr>
                                       @endforeach
                                       	<tr>
                                       		<td><a class="waves-effect waves-light btn" card="{{ $v['customerid'] or '' }}" sellerid="{{ $v['sellerid'] or '' }}" onclick="tobuyer(this)">
					                             	<i class="material-icons right">cloud
					                             	</i>将钱转给买家
					                             </a>
											</td>
									<td>
			                             <a class="waves-effect waves-light btn" card="{{ $v['customerid'] or '' }}" sellerid="{{ $v['sellerid'] or '' }}" onclick="toseller(this)">
			                             	<i class="material-icons right">cloud
			                             	</i>将钱转给卖家
			                             </a>
			                         </td>
                                       	</tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                     <!-- End  Kitchen Sink -->
                </div>
@endsection
@section('classified')
	<script src="/adminassets/orderIndexJs/money.js"></script>
@endsection